package com.newlink.building.userinfo.mvp

import android.util.Log
import com.newlink.building.common_base.base.BasePresenter
import com.newlink.building.common_base.ext.ss
import com.newlink.building.userinfo.mvp.contract.Module_UserInfo_HelpContract
import com.newlink.building.userinfo.mvp.model.Module_UserInfo_HelpModel

/**
 * @author wangyang
 * @date 2022/9/20
 * @description 我的-关于页面的Presenter
 */
class Module_UserInfo_HelpPresenter : BasePresenter<Module_UserInfo_HelpContract.Model, Module_UserInfo_HelpContract.View>(),
    Module_UserInfo_HelpContract.Presenter {
    override fun getFAQ() {
        mModel?.getFAQ()?.ss(mModel, mView) {
            mView?.onGetFAQSuccess(it?.data)
        }
    }

    override fun attachView(v: Module_UserInfo_HelpContract.View) {
        super.attachView(v)
        if (v == null) {
            Log.e("fvl_dbg", "--------v is null-------")
        } else {
            Log.e("fvl_dbg", "--------v is not null-------")
        }
        if (mView == null) {
            Log.e("fvl_dbg", "--------mView is null-------")
        }
    }

    override fun createModel(): Module_UserInfo_HelpContract.Model = Module_UserInfo_HelpModel()


}